package com.hunan.chinamobile.service.impl;

import com.hunan.chinamobile.dao.DeviceDataMapper;
import com.hunan.chinamobile.dto.DeviceDataDTO;
import com.hunan.chinamobile.model.DeviceData;
import com.hunan.chinamobile.service.DeviceDataService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeviceDataServiceImpl implements DeviceDataService {

    @Resource
    private DeviceDataMapper deviceDataMapper;

    @Override
    public List<DeviceData> findByDeviceId(String deviceId) {
        return deviceDataMapper.findByDeviceId(deviceId);
    }

    @Override
    public List<DeviceDataDTO> findList(String deviceId, String bsId, String cityId, Integer type, String startDate, String endDate) {
        return deviceDataMapper.findList(deviceId, bsId, cityId, type, startDate, endDate);
    }

    @Override
    public List<DeviceData> findVoltageCurve(String deviceId, String startTime, String endTime) {
        return deviceDataMapper.findVoltageCurve(deviceId, startTime, endTime);
    }
}
